|
ARD2
1.00 for Rev B. Hardware
Airbag Reference Demonstrator using MPC5604P
|
System Integration Unit - Pins and routing. More...
Functions | |
| void | vfnConfigDefaultPinBehavior (const uint16_t *pu16Config, uint8_t u8Offset, uint8_t u8ConfigSize) |
| Will configure a number of contiguous pins for a particular behavior - input, output, or routed to a specific module. | |
| void | vfnToggleOutputPin (const uint8_t u8Port, const uint8_t u8Pin, const uint8_t u8Level) |
| Will force an output pin to either a high or a low logical level. | |
| uint8_t | u8fnReadPin (const uint8_t u8Port, const uint8_t u8Pin) |
| Will return the current level for a given pin. | |
| uint8_t | u8fnReturnPinIndex (const uint8_t u8Port, const uint8_t u8Pin) |
| Will return the global index for a given port and pin number. | |
| uint8_t | u8fnRouteInputPad (const uint8_t u8Module, const uint8_t u8PinIndex) |
| Will route and input pad to the correct peripheral. | |
| uint8_t | u8fnIRQConfig (uint8_t u8Channel, IRQConfig_t tConfig) |
| Will configure an IRQ channel according to the passed argument. | |
| void | vfnIRQClearIsrFlag (uint8_t u8Channel) |
| Clears the appropriate Isr flag for a given channel. | |
System Integration Unit - Pins and routing.
Copyright (c) 2011 Freescale Semiconductor Freescale Confidential Proprietary
History:
| uint8_t u8fnIRQConfig | ( | uint8_t | u8Channel, |
| IRQConfig_t | tConfig | ||
| ) |
Will configure an IRQ channel according to the passed argument.
| u8Channel,: | IRQ channel (from 0 to 31) to be configured. |
| tConfig,: | Configuration for the IRQ channel according to IRQConfig_t. Passed values include Rising and/or falling edge detection, glitch filter enabling, and interrupt enable bit. |
| uint8_t u8fnReadPin | ( | const uint8_t | u8Port, |
| const uint8_t | u8Pin | ||
| ) |
Will return the current level for a given pin.
| u8Port | Port to which the pin belongs. Passed argument should be ASCII representation of port. I.E. for port A, the passed argument should be 'A' or 0x41. |
| u8Pin | Pin number in the port. This value should NOT be ASCII. |
| uint8_t u8fnReturnPinIndex | ( | const uint8_t | u8Port, |
| const uint8_t | u8Pin | ||
| ) |
Will return the global index for a given port and pin number.
| u8Port | Port to which the pin belongs. Passed argument should be ASCII representation of port. I.E. for port A, the passed argument should be 'A' or 0x41. |
| u8Pin | Pin number in the port. This value should NOT be ASCII. |
| uint8_t u8fnRouteInputPad | ( | const uint8_t | u8Module, |
| const uint8_t | u8PinIndex | ||
| ) |
Will route and input pad to the correct peripheral.
| u8Module | Input pad number as listed in PAD_INPUT_CHANNELS enum. |
| u8PinIndex | Index number for the appropriate pins, as listed by PAD_SELx defines and as specified in the device's reference manual. |
| void vfnConfigDefaultPinBehavior | ( | const uint16_t * | pu16Config, |
| uint8_t | u8Offset, | ||
| uint8_t | u8ConfigSize | ||
| ) |
Will configure a number of contiguous pins for a particular behavior - input, output, or routed to a specific module.
| pu16Config | Pointer to configuration value. This register will be placed in the adequate PCR register. |
| u8Offset | Starting pin number. |
| u8ConfigSize | Number of contiguous pins to config. |
| void vfnIRQClearIsrFlag | ( | uint8_t | u8Channel | ) |
Clears the appropriate Isr flag for a given channel.
| u8Channel,: | IRQ channel (from 0 to 31). |
| void vfnToggleOutputPin | ( | const uint8_t | u8Port, |
| const uint8_t | u8Pin, | ||
| const uint8_t | u8Level | ||
| ) |
Will force an output pin to either a high or a low logical level.
| u8Port | Port to which the pin belongs. Passed argument should be ASCII representation of port. I.E. for port A, the passed argument should be 'A' or 0x41. |
| u8Pin | Pin number in the port. This value should NOT be ASCII. |
| u8Level | CLEAR for 0, any other value for 1. |